<?php

/*
 *  Auteur: DikkeHein <Clemens Wijnekus>
 */
?>

<section id="main" class="column">
    <article class="module width_full">
        <header><h3>Actiepunt aanmaken</h3></header>
        <div class="module_content">
            <?php echo form_open('actiepunten/aanmaken'); ?>

            <?php if (validation_errors()) : ?>
                <h3>Whoops! Foutje:</h3>
                <p><?php echo validation_errors(); ?></p>
            <?php endif; ?>

            <table border="0">
                <tr>
                    <td>Beschrijving: </td>
                    <td><?php echo form_input($beschrijving); ?></td>
                </tr>
                <tr>
                    <td>Deadline (YYYY-MM-DD): </td>
                    <td><?php echo form_input($deadline); ?></td>
                </tr>
                <tr>
                    <td>Staffers: </td>
                    <td>
                        <?php foreach ($staf as $staffer) : ?>
                            <?php echo form_checkbox('ap_staffers[]', $staffer['id']) . ' ' . $staffer['voornaam'] . ' ' . $staffer['achternaam'] ; ?><br />
                        <?php endforeach; ?>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp</td>
                    <td><?php echo form_hidden('jaar', $gebruiker['kampjaar']); ?></td>
                </tr>
                <tr>
                    <td><?php echo form_submit('submit', 'Aanmaken'); ?></td>
                    <td><?php echo anchor('actiepunten', 'Cancel'); ?></td>
                </tr>
            </table>
            <?php echo form_close(); ?>
        </div>
    </article><!-- end of styles article -->
</section>